package com.bdqn.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 二级分类Vo类 临时数据
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Catelog2Vo {

    private String catalog1Id; //1级父分类

    private List<Catelog3Vo> catalog3List;  //3级子分类

    //当前节点的id号
    private String id;

    //节点名称
    private String name;

    /**
     * {
     *                     "catalog2Id":"61",
     *                     "id":"610",
     *                     "name":"商务休闲鞋"
     *
     */
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class Catelog3Vo{

        private String catalog2Id;  //父分类 2级分类id

        private String id;  //当前节点的Id

        private String name;    //节点名称

    }

}
